package com.eight.cloud.openfeign.message.model;

import com.eight.cloud.core.global.model.BaseUser;
import lombok.Data;

import java.io.Serializable;

/**
 * 消息实体
 *
 * @ClassName: Message
 * @Author: TXC
 * @Date: 2024-10-11 10:49
 **/
@Data
public class SocketMessage<T> implements Serializable {
    /**
     * 来源
     */
    private String from;
    /**
     * 去向
     */
    private BaseUser to;
    /**
     * 内容
     */
    private T payload;

    /**
     * 目的地url
     */
    private String destination;

    /**
     * 消息类型
     */
    private String contentType;
}
